<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改个人履历')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-detail-edit" th:object="${userDetail}">
            <input name="detailId" th:field="*{detailId}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">姓名：</label>
                <div class="col-sm-8">
                    <input name="userName" th:field="*{userName}" class="form-control" type="text" readonly>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">时间范围：</label>
                <div class="col-sm-8">
                    <div class="layui-input-inline">
                        <input type="text" class="form-control" id="test" name="startTime" placeholder=" 请选择" th:field="*{startTime}"  required>
                    </div>
                </div>
            </div>

            <div class="form-group">    
                <label class="col-sm-3 control-label">履历介绍：</label>
                <div class="col-sm-8">
                    <textarea name="introduce" th:field="*{introduce}" class="form-control" type="text"></textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "system/detail";
        $("#form-detail-edit").validate({
            focusCleanup: true
        });

        layui.use('laydate', function() {
            var laydate = layui.laydate;
            //年范围
            laydate.render({
                elem: '#test'
                ,type: 'year'
                ,range: true
            });
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-detail-edit').serialize());
            }
        }
    </script>
</body>
</html>